import { BaseBeanData, BaseRuleBeanData } from '@/model/base/baseModel'

export interface PrivilegeBeanData extends BaseBeanData {
  step: string;
  privilegeName: string;
  directory: string;
}

export interface PrivilegeList {
  list: Array<PrivilegeBeanData>;
  total: number
}

export const RuleBeanData = {
  ...BaseRuleBeanData,
  step: '',
  privilegeName: '',
  directory: ''
}

export const FORM_RULES = ({
  privilegeName: [{ required: true, message: '请输入权限名称', trigger: 'change' }]
})
